package cn.lotusnut.rabbitmqboot.topic;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author JiangMing Zhou
 * @Date 2022/12/1 14:25
 * @Version 1.8
 * 生产者，接收消息
 */
@Component
public class TopicConsumerDog {


    /**
     * 消费消息
     * @param message
     */
    @RabbitListener(queues = "topic_dog")
    public void consumer(String message){
        System.out.println("消费者dog接收到消息："+message);
    }
}
